package com.ssy.lingxi.search.service;

import com.ssy.lingxi.common.model.vo.PageVO;
import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.search.api.model.request.CommoditySearchRequest;
import com.ssy.lingxi.search.api.model.response.BrandResponse;
import com.ssy.lingxi.search.api.model.response.CategoryResponse;

import java.util.List;

/**
 * 渠道商品搜索管理类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/7/28
 */
public interface ITemplateChannelService {

    /**
     * 查询一级分类
     * @param memberId
     * @return
     */
    List<CategoryResponse> getFirstCategoryList(Long shopId, Long memberId);

    /**
     * 查询二级分类
     * @param memberId
     * @param categoryId
     * @return
     */
    List<CategoryResponse> getSecondCategoryList(Long shopId, Long memberId, Long categoryId);

    /**
     * 查询品牌列表
     * @param pageVO
     * @param searchRequest
     * @return
     */
    PageData<BrandResponse> searchBrandList(PageVO pageVO, CommoditySearchRequest searchRequest);
}
